package com.xue.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * @author xuejingbao
 * @create 2022-08-02 14:41
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class LocationLightInfo extends Info {

    /**
     * 1：动态车辆，2：静态车辆，3，行人）
     */
    private Integer classType;

    /**
     * 唯一标识
     */
    private String id;

    /**
     * 是否亮灯
     */
    private Integer light;

    public LocationLightInfo(String id, Integer light) {
        this.id = id;
        this.light = light;
    }

    @Override
    public Integer getInfoType() {
        return Info.LOCATION_LIGHT_INFO;
    }


}
